package com.dm.shop.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;
/**
 * @version 1.0
 * @author: Saiya Wang
 * @desc:TODO
 * @date: 2021/7/21 9:55
 */
@Data
@AllArgsConstructor  //包含所有参数的构造函数注解
@NoArgsConstructor   //无参构造函数注解
public class AuthAdminDTO {
    @NotBlank(message="用户名不能为空")
    private String username;

    @NotBlank(message="密码不能为空")
    @Length(min=6,max =25,message = "密码长度为6-25")
    private String password;
}
